/*!
 * \file frprint_bin.c
 *
 * All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.\n
 *
 * \version 3.0
 * \author geyh
 * \date 2016/03/31
 *
 */
#include <CUnit/Basic.h>
#include <stdlib.h>

#include "frcomm.h"
#include "frmem.h"
#include "frstr.h"
#include "conntrack.h"
#include "frct_comm.h"

#include "apmtest_comm.h"

static int __suite_init(void)
{

    return 0;
}

static int __suite_cleanup(void)
{

    return 0;
}


static void __case1(void)
{
    const char *p_fun = (const char *)"fun";
    const char *p_file = (const char *)"file";
    unsigned int ui_line = 1;
    const char *p_title = (const char *)"output";
    const char *p_data = (const char *)"test";
    unsigned int ui_size = 5;

    frprint_bin(p_fun, p_file, ui_line, p_title, p_data, ui_size);

    return;
}

static void __case2(void)
{
    const char *p_fun = (const char *)"fun";
    const char *p_file = (const char *)"file";
    unsigned int ui_line = 1;
    const char *p_title = (const char *)"output";
    const char *p_data = NULL;
    unsigned int ui_size = 0;

    frprint_bin(p_fun, p_file, ui_line, p_title, p_data, ui_size);

    return;
}



int add_suite_frprint_bin(void)
{
    CU_pSuite pSuite = NULL;

    if ((pSuite = CU_add_suite("frsutl frprint_bin()", __suite_init, __suite_cleanup)) == NULL)
        return FR_FAIL;

    CU_add_test(pSuite, "case1", __case1);
    CU_add_test(pSuite, "case2", __case2);

    return FR_SUCC;
}
